package com.miyu.common.pojo.cos;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.*;
import java.io.Serializable;

/**
 * 系统菜单
 *
 * @author MIYU
 * @date 2022/05/07
 */
@Data
@Entity
@Table(name="cos_menu")
public class CosMenu implements Serializable {
    private static final long serialVersionUID = 1L;
    /** 菜单id;主键uuid */
    @Id
    @ApiModelProperty(name = "菜单id",notes = "主键uuid")
    @Column(name = "menu_id", nullable = false, length = 32)
    private String menuId ;
    /** 访问地址;文件路径 */
    @ApiModelProperty(name = "访问地址",notes = "文件路径")
    @Column(name = "component", nullable = true, length = 100)
    private String component ;
    /** 菜单类别;菜单类别 */
    @ApiModelProperty(name = "菜单类别",notes = "菜单类别")
    @Column(name = "menu_mod", nullable = true, length = 15)
    private String menuMod ;
    /** 菜单名称;菜单名称 */
    @ApiModelProperty(name = "菜单名称",notes = "菜单名称")
    @Column(name = "menu_name", nullable = false, length = 100)
    private String menuName ;
    /** 是否后端;是否后端 */
    @ApiModelProperty(name = "是否后端",notes = "是否后端")
    @Column(name = "is_back", nullable = true, length = 1)
    private String isBack ;
    /** 标识;唯一标识使用跳转 */
    @ApiModelProperty(name = "标识",notes = "唯一标识使用跳转")
    @Column(name = "name", nullable = true, length = 500)
    private String name ;
    /** 图标;菜单图标 */
    @ApiModelProperty(name = "图标",notes = "菜单图标")
    @Column(name = "menu_icon", nullable = true, length =100 )
    private String menuIcon ;
    /** 访问地址;访问地址 */
    @ApiModelProperty(name = "访问地址",notes = "访问地址")
    @Column(name = "path", nullable = true, length = 100)
    private String path ;
    /** 排序;同级别菜单排序 */
    @ApiModelProperty(name = "排序",notes = "同级别菜单排序")
    @Column(name = "order_num", nullable = true, length = 2)
    private Integer orderNum ;
    /** 父级节点;父级菜单 */
    @ApiModelProperty(name = "父级节点",notes = "父级菜单")
    @Column(name = "parent_id", nullable = true, length =32 )
    private String parentId ;
    /** 是否显示;菜单是否显示 */
    @ApiModelProperty(name = "是否显示",notes = "菜单是否显示")
    @Column(name = "is_show", nullable = true, length = 1)
    private String isShow ;
    /** 是否停用;是否停用 */
    @ApiModelProperty(name = "是否停用",notes = "是否停用")
    @Column(name = "is_stop", nullable = true, length = 1)
    private String isStop ;
    /** 是否系统;是否系统菜单 */
    @ApiModelProperty(name = "是否系统",notes = "是否系统菜单")
    @Column(name = "is_sys", nullable = false, length = 1)
    private String isSys ;
    /** 显示空间;页面显示区域 默认后端 */
    @ApiModelProperty(name = "显示空间",notes = "页面显示区域 默认后端")
    @Column(name = "space_id", nullable = true, length =32 )
    private String spaceId ;
    /** 是否末级;是否末级菜单 */
    @ApiModelProperty(name = "是否末级",notes = "是否末级菜单")
    @Column(name = "is_last", nullable = true, length =1 )
    private String isLast ;
    /** 备注;备注 */
    @ApiModelProperty(name = "备注",notes = "备注")
    @Column(name = "mome", nullable = true, length = 100)
    private String mome ;
}
